<template>
    <div class="dl-list-item" @click="$emit('trigger')">
        <div class="left left-three" :class="">{{info.BUILDING_NAME}}</div>
        <div class="right">{{info.ROOM_NUMBER}}</div>
    </div>
</template>

<script>
export default {
    name: 'dl-list-item',
    props: {
        info: Object
    },
    computed: {
        // itemColor() {
        //     let colorArray = ['#ff9090', '#ffc851', '#a29eff', '#ff872f', '#62a4f0', '#78f45c', '#bb82cf', '#6ce3d0']
        //     return colorArray[1]
        // }
    }
}
</script>

<style lang="less">
.dl-list-item {
    display: flex;
    width: 100px;
    height: 60px;
    border: 1px solid #f2f2f2;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
    .left {
        display: flex;
        align-items: center;
        width: 25px;
        height: 100%;
        font-size: 14px;
        text-align: center;
        padding: 0 5px;
        color: #fff;
        &-one {
            background-color: #ff9090;
        }
        &-two {
            background-color: #ffc851;
        }
        &-three {
            background-color: #a29eff;
        }
        &-four {
            background-color: #ff872f;
        }
        &-five {
            background-color: #62a4f0;
        }
        &-six {
            background-color: #78f45c;
        }
        &-seven {
            background-color: #bb82cf;
        }
        &-eight {
            background-color: #6ce3d0;
        }
    }
    .right {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 75px;
        font-size: 20px;
    }
}
</style>
